﻿using UnityEngine;
using System.Collections;
using System;

namespace GameBasic.BehaviorTree
{
    /// <summary>
    /// Light-weight parallel actions
    /// </summary>
    public struct MultiActSub
    {
        public Action<MultiActBhv, float, RunStat> act;
        public float startTime;
        public float duration;

        // runtime
        public float progress;

        public MultiActSub(Action<MultiActBhv, float, RunStat> action, float startTime = 0, float duration = 0)
        {
            this.act = action;
            this.startTime = startTime;
            this.duration = duration;
            progress = 0;
        }
    }
}